package com.x2y3.xmall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 远程服务调用的步骤
 * 1、引入open-feign
 * 2、编写接口，告诉springCloud 这个接口需要调用远程服务
 *     2.1、声明接口的每一个方法都是调用哪个远程服务的那个请求（备注好签名）
 * 3、开启远程调用功能
 */
@EnableFeignClients("com.x2y3.xmall.member.feign")
@MapperScan("com.x2y3.xmall.member.dao")
@EnableDiscoveryClient
@SpringBootApplication
public class XmallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(XmallMemberApplication.class, args);
    }

}
